package com.blackcat.v1.testservlet;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.*;
import java.io.IOException;

@Slf4j
public class LoginServlet implements Servlet {

    public void init(ServletConfig config) throws ServletException {

    }

    public ServletConfig getServletConfig() {
        return null;
    }

    public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
        log.info("login service");
        res.getWriter().println("hello");
        res.getWriter().println("world");
        res.getWriter().println("login");
    }

    public String getServletInfo() {
        return null;
    }

    public void destroy() {

    }
}
